﻿<%@ Page Language="C#" MasterPageFile="~/adm-Master.Master" AutoEventWireup="true" CodeBehind="Admin.aspx.cs" Inherits="BookStore.admin.Admin" Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    
    <div>
          
    <div class="PageName">Admin Manager</div>
    
<asp:Panel ID="pnView" runat="server">

<div class="Control">
    <ul>
        <li>
            <asp:LinkButton CssClass="vadd" ID="lbtAddT" runat="server" 
                onclick="lbtAddT_Click">Add new</asp:LinkButton>
        </li>
        <li> 
            <asp:LinkButton CssClass="vrefresh" ID="lbtRefreshT" runat="server" 
                onclick="lbtRefreshT_Click">Refesh</asp:LinkButton></li> 
        <li> 
            <a class="vback" href="javascript:void(0);" onclick="window.history.go(-1);">Back</a> 
        </li>
    </ul>
</div>
    <asp:GridView ID="gvAdmin" runat="server" AllowPaging="True" 
        AutoGenerateColumns="False" HorizontalAlign="Center" 
        onrowdeleting="gvAdmin_RowDeleting" PageSize="5" 
        onselectedindexchanging="gvAdmin_SelectedIndexChanging" 
        CssClass="TableView" onpageindexchanging="gvAdmin_PageIndexChanging">
        <Columns>
            <asp:BoundField DataField="username" HeaderText="Username" />
            <asp:BoundField HeaderText="Pass" />
            <asp:BoundField DataField="fullname" HeaderText="Fullname" />
            <asp:BoundField DataField="birthday" HeaderText="Birthday" />
            <asp:BoundField DataField="address" HeaderText="Address" />
            <asp:BoundField DataField="email" HeaderText="Email" />
            <asp:BoundField DataField="registerDate" HeaderText="RegisterDate" />
            <asp:BoundField DataField="decentralization" HeaderText="Decentralization" />
            <asp:CommandField ShowDeleteButton="True" />
            <asp:CommandField ShowSelectButton="True" />
        </Columns>
    </asp:GridView>
<div class="Control">
    <ul>
        <li>
            <asp:LinkButton CssClass="vadd" ID="lbtAddB" runat="server" 
                onclick="lbtAddT_Click">Add new</asp:LinkButton>
        </li> 
        <li>
            <asp:LinkButton CssClass="vrefresh" ID="lbtRefreshB" runat="server">Refesh</asp:LinkButton></li> 
        <li> 
            <a class="vback" href="javascript:void(0);" onclick="window.history.go(-1);">Back</a> 
        </li>
    </ul>
</div>
</asp:Panel>
<asp:Panel ID="pnUpdate" runat="server" Visible="False">
<table class="TableUpdate" border="1">
    <tr> 
        <td class="Control" colspan="2"> 
            <ul>
                <li>
                    <asp:LinkButton CssClass="uupdate" ID="lbtUpdateT" runat="server" 
                        onclick="lbtUpdateT_Click">Save</asp:LinkButton>
                </li> 
                <li> 
                    <a class="vback" href="javascript:void(0);" onclick="window.history.go(-1);">Back</a> 
                </li> 
            </ul>
        </td> 
    </tr>
    <tr> 
    <th> 
       <asp:Label ID="lblUsername" runat="server" Text="Username :"></asp:Label>
    </th>
    <td>
       <asp:TextBox ID="txtUsername" runat="server" CssClass="Text" Width="306px"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
            ControlToValidate="txtUsername" ErrorMessage="not blank"></asp:RequiredFieldValidator>
    </td>
     </tr>
    <tr> 
       <th> 
            <asp:Label ID="lblPassword" runat="server" Text="Password :"></asp:Label>
       </th>
       <td>
            <asp:TextBox ID="txtPassword" runat="server" CssClass="Text" 
                TextMode="Password" Width="303px"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                ControlToValidate="txtPassword" ErrorMessage="not blank"></asp:RequiredFieldValidator>
       </td>
     </tr>
     <tr> 
        <th> 
            <asp:Label ID="lblFullname" runat="server" Text="Fullname :"></asp:Label>
        </th>
        <td>
            <asp:TextBox ID="txtFullname" runat="server" CssClass="Text"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                ControlToValidate="txtFullname" ErrorMessage="not blank"></asp:RequiredFieldValidator>
        </td>
     </tr>
      <tr> 
         <th> 
             <asp:Label ID="lblBirthday" runat="server" Text="Birthday :"></asp:Label>
         </th>
         <td>
             <asp:TextBox ID="txtBirthday" runat="server" CssClass="Text" Width="304px"></asp:TextBox>
             
             <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                 ControlToValidate="txtBirthday" ErrorMessage="not blank"></asp:RequiredFieldValidator>
             
         </td>
      </tr>
      <tr> 
         <th> 
             <asp:Label ID="lblAddress" runat="server" Text="Address :"></asp:Label>
        </th>
        <td>
            <asp:TextBox ID="txtAdd" runat="server" CssClass="Text" Width="305px"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" 
                ControlToValidate="txtAdd" ErrorMessage="not blank"></asp:RequiredFieldValidator>
        </td>
     </tr>
     <tr> 
        <th> 
            <asp:Label ID="lblEmail" runat="server" Text="Email :"></asp:Label>
        </th>
        <td>
            <asp:TextBox ID="txtEmail" runat="server" CssClass="Text" Width="304px"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" 
                ControlToValidate="txtEmail" ErrorMessage="not blank"></asp:RequiredFieldValidator>
            <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                ControlToValidate="txtEmail" ErrorMessage="email is invalid" 
                ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
        </td>
     </tr>
     <tr> 
        <th> 
            <asp:Label ID="lblDateregister" runat="server" Text="Date Register :"></asp:Label>
        </th>
        <td>
            <asp:TextBox ID="txtDateregister" runat="server" CssClass="Text" Width="303px"></asp:TextBox>
            
            <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" 
                ControlToValidate="txtDateregister" ErrorMessage="not blank"></asp:RequiredFieldValidator>
            
        </td>
      </tr>
     <tr> 
        <th> 
            <asp:Label ID="lbldecen" runat="server" Text="decentralization :"></asp:Label>
        </th>
        <td>
            <asp:DropDownList ID="ddlDecen" runat="server" Height="16px" Width="83px" 
                AutoPostBack="True">
                <asp:ListItem>1</asp:ListItem>
                <asp:ListItem>2</asp:ListItem>
            </asp:DropDownList>
        </td>
     </tr>
     <tr> 
         <td class="Control" colspan="2">
             <ul>
                 <li>
                 <asp:LinkButton CssClass="uupdate" ID="LinkButton1" runat="server" 
                         onclick="lbtUpdateT_Click">Save</asp:LinkButton>
                 </li> 
                 <li> 
                 <a class="vback" href="javascript:void(0);" onclick="window.history.go(-1);">Back</a> 
                 </li> 
             </ul>
         </td> 
     </tr>
</table>
</asp:Panel>
 </div>
    
</asp:Content>
